package com.zkingsoft.plugin.util;

import javax.transaction.xa.Xid;

public class MyXid implements Xid {  
	    byte[] globalTransactionId;  
	    byte[] branchQualifier;  

	    public MyXid(byte[] globalTransactionId, byte[] branchQualifier) {  
	        this.globalTransactionId = globalTransactionId;  
	        this.branchQualifier = branchQualifier;  
	    }  

	    @Override  
	    public int getFormatId() {  
	        return 1;  
	    }  

	    @Override  
	    public byte[] getGlobalTransactionId() {  
	        return globalTransactionId;  
	    }  

	    @Override  
	    public byte[] getBranchQualifier() {  
	        return branchQualifier;  
	    }  
	} 
